package com.by.auth;

import org.apache.shiro.authc.UsernamePasswordToken;

import java.io.Serializable;

/**
 * @author hsitung
 */
@SuppressWarnings("all")
public class MyUsernamePasswordToken extends UsernamePasswordToken implements Serializable {

	//登录类型，判断是普通用户登录，教师登录还是管理员登录
	private String loginType;

	public MyUsernamePasswordToken(final String username, final String password,boolean rememberMe, final String host,final String loginType) {
		super(username,password, rememberMe, host);
		this.loginType = loginType;
	}

	public MyUsernamePasswordToken(final String username, final String password, String loginType) {
		super(username,password);
		this.loginType = loginType;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
}
